package com.ckr.springcloud;

import com.ckr.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author Shadowckr
 * @create 2022-01-25 9:52
 */

//Ribbon和Eureka整合后Consumer可以直接调用服务而不用再关心地址和端口号！
@SpringBootApplication
@EnableEurekaClient
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT", configuration = MySelfRule.class)//核心！
public class DeptConsumerRibbon80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumerRibbon80.class, args);
    }
}
